package com.cskaoyan.bean.bo.wx;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.AssertFalse;
import javax.validation.constraints.AssertTrue;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @Author: zhang
 * @Date: 2022/11/24 11:23
 * @Since: jdk1.8
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@NotNull(message = "参数不能为空")
public class WxAddressSaveBo {
    @Min(0)
    private Integer id;
    private String name;
    @Length(min = 11, max = 11, message = "手机号长度得是11位")
    private String tel;
    private String province;
    private String city;
    private String county;
    @Length(min = 6, max = 6, message = "地区号得是6位")
    private String areaCode;
    private String addressDetail;
    private Boolean isDefault;
}
